Document: add PLAT_PL061_MAX_GPIOS define
authorHaojian Zhuang <[email protected]>
Wed, 3 Feb 2016 14:35:04 +0000 (22:35 +0800)
committerHaojian Zhuang <[email protected]>
Fri, 12 Feb 2016 15:21:37 +0000 (23:21 +0800)
ARM PL061 GPIO driver requires the "PLAT_PL061_MAX_GPIOS" definition.
By default, it's defined to 32 in PL061 GPIO driver. If user wants
more PL061 controllers in platform, user should define the build
flag in platform.mk instead.

Signed-off-by: Haojian Zhuang <[email protected]>
docs/porting-guide.md

index bdbdbc22e5c50cf0c1e487f5ebc511544149274d..89d8251eb2d4c0c8d2d067bf4a9853a217a72308 100644 (file)
@@ -466,6 +466,18 @@ memory layout implies some image overlaying like in ARM standard platforms.
 
     Defines the maximum address that the TSP's progbits sections can occupy.
 
+If the platform port uses the PL061 GPIO driver, the following constant may
+optionally be defined:
+
+*   **PLAT_PL061_MAX_GPIOS**
+    Maximum number of GPIOs required by the platform. This allows control how
+    much memory is allocated for PL061 GPIO controllers. The default value is
+    32.
+    [For example, define the build flag in platform.mk]:
+    PLAT_PL061_MAX_GPIOS    :=      160
+    $(eval $(call add_define,PLAT_PL061_MAX_GPIOS))
+
+
 ### File : plat_macros.S [mandatory]
 
 Each platform must ensure a file of this name is in the system include path with